<?php
if (!$_SESSION["loggedin"]){
  header("Location: ?q=login");
}
header("Location: ?q=student");

?>